// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * Payable
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "payable", autoResultMap = true)
@Schema(title = "应付单")
public class Payable implements Serializable {

  /**
   * 单据编号
   */
  @TableField(value = "`pay_code`")
  @Schema(title = "单据编号")
  private String payCode;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 供应商
   */
  @TableField(value = "`supplier_id`")
  @JoinField(Supplier.class)
  @Schema(title = "供应商")
  private Long supplierId;

  /**
   * 供应商名称
   */
  @TableField(value = "`supplier_name`")
  @Schema(title = "供应商名称")
  private String supplierName;

  /**
   * 数量
   */
  @TableField(value = "`total_num`")
  @Schema(title = "数量")
  private String totalNum;

  /**
   * 仓库
   */
  @TableField(value = "`warehouse`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private Long warehouse;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 结算组织
   */
  @TableField(value = "`settlement_org`")
  @JoinField(DbOrganization.class)
  @Schema(title = "结算组织")
  private Long settlementOrg;

  /**
   * 付款组织
   */
  @TableField(value = "`pay_org`")
  @JoinField(SysDepartment.class)
  @Schema(title = "付款组织")
  private Long payOrg;

  /**
   * 采购组织
   */
  @TableField(value = "`purchases_org`")
  @JoinField(DbOrganization.class)
  @Schema(title = "采购组织")
  private Long purchasesOrg;

  /**
   * 入库日期
   */
  @TableField(value = "`business_date`")
  @Schema(title = "入库日期")
  private java.util.Date businessDate;

  /**
   * 审核日期
   */
  @TableField(value = "`settlement_date`")
  @Schema(title = "审核日期")
  private java.util.Date settlementDate;

  /**
   * 金额
   */
  @TableField(value = "`total_amount`")
  @Schema(title = "金额")
  private String totalAmount;

  /**
   * 状态
   */
  @TableField(value = "`stauts`")
  @Schema(title = "状态")
  private String stauts;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 驳回原因
   */
  @TableField(value = "`reject_remark`")
  @Schema(title = "驳回原因")
  private String rejectRemark;

  /**
   * 推送状态 (0 - 未推送; 1 - 成功; 2 - 失败; )
   */
  @TableField(value = "`push_status`")
  @Schema(title = "推送状态")
  private String pushStatus;

  /**
   * 结果信息
   */
  @TableField(value = "`result_info`")
  @Schema(title = "结果信息")
  private String resultInfo;

  /**
   * 金蝶凭证号
   */
  @TableField(value = "`voucher_no`")
  @Schema(title = "金蝶凭证号")
  private String voucherNo;

  /**
   * 产品类型 (0 - 原材料; 1 - 成品; 3 - 加工; )
   */
  @TableField(value = "`product_type`")
  @Schema(title = "产品类型")
  private String productType;

  /**
   * 制单人
   */
  @TableField(value = "`prepared_by`")
  @JoinField(SysUser.class)
  @Schema(title = "制单人")
  private Long preparedBy;

  /**
   * 审核人
   */
  @TableField(value = "`verifier`")
  @JoinField(SysUser.class)
  @Schema(title = "审核人")
  private Long verifier;

  /**
   * 采购单号
   */
  @TableField(value = "`purchase_order`")
  @Schema(title = "采购单号")
  private String purchaseOrder;

  /**
   * 入库单号
   */
  @TableField(value = "`warehouse_sn`")
  @Schema(title = "入库单号")
  private String warehouseSn;

  /**
   * 结款状态 (0 - 未结账; 1 - 已结账; )
   */
  @TableField(value = "`settlement_status`")
  @Schema(title = "结款状态")
  private String settlementStatus;

  /**
   * categoryId (0 - 低客单价; 1 - 高客单价; )
   */
  @TableField(value = "`category_id`")
  @Schema(title = "categoryId")
  private String categoryId;
}
